package com.chinapost.po;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Tjfsz entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TJFSZ", schema = "YXJF")
public class Tjfsz implements java.io.Serializable {

	// Fields

	private String cid;
	private Tuser tuserByCcreateuserid;
	private Tkind tkind;
	private Tdept tdept;
	private Tuser tuserByCmodifyuserid;
	private Double cje;
	private Double cjf;
	private Timestamp ccreatedate;
	private Timestamp cmodifydate;

	// Constructors

	/** default constructor */
	public Tjfsz() {
	}

	/** minimal constructor */
	public Tjfsz(String cid) {
		this.cid = cid;
	}

	/** full constructor */
	public Tjfsz(String cid, Tuser tuserByCcreateuserid, Tkind tkind, Tdept tdept, Tuser tuserByCmodifyuserid, Double cje, Double cjf, Timestamp ccreatedate, Timestamp cmodifydate) {
		this.cid = cid;
		this.tuserByCcreateuserid = tuserByCcreateuserid;
		this.tkind = tkind;
		this.tdept = tdept;
		this.tuserByCmodifyuserid = tuserByCmodifyuserid;
		this.cje = cje;
		this.cjf = cjf;
		this.ccreatedate = ccreatedate;
		this.cmodifydate = cmodifydate;
	}

	// Property accessors
	@Id
	@Column(name = "CID", unique = true, nullable = false, length = 36)
	public String getCid() {
		return this.cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CCREATEUSERID")
	public Tuser getTuserByCcreateuserid() {
		return this.tuserByCcreateuserid;
	}

	public void setTuserByCcreateuserid(Tuser tuserByCcreateuserid) {
		this.tuserByCcreateuserid = tuserByCcreateuserid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CKIND")
	public Tkind getTkind() {
		return this.tkind;
	}

	public void setTkind(Tkind tkind) {
		this.tkind = tkind;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CDEPTID")
	public Tdept getTdept() {
		return this.tdept;
	}

	public void setTdept(Tdept tdept) {
		this.tdept = tdept;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CMODIFYUSERID")
	public Tuser getTuserByCmodifyuserid() {
		return this.tuserByCmodifyuserid;
	}

	public void setTuserByCmodifyuserid(Tuser tuserByCmodifyuserid) {
		this.tuserByCmodifyuserid = tuserByCmodifyuserid;
	}

	@Column(name = "CJE", precision = 10)
	public Double getCje() {
		return this.cje;
	}

	public void setCje(Double cje) {
		this.cje = cje;
	}

	@Column(name = "CJF", precision = 10)
	public Double getCjf() {
		return this.cjf;
	}

	public void setCjf(Double cjf) {
		this.cjf = cjf;
	}

	@Column(name = "CCREATEDATE", length = 11)
	public Timestamp getCcreatedate() {
		return this.ccreatedate;
	}

	public void setCcreatedate(Timestamp ccreatedate) {
		this.ccreatedate = ccreatedate;
	}

	@Column(name = "CMODIFYDATE", length = 11)
	public Timestamp getCmodifydate() {
		return this.cmodifydate;
	}

	public void setCmodifydate(Timestamp cmodifydate) {
		this.cmodifydate = cmodifydate;
	}

}